<?php
/* Portal Pracy - praca magisterska
 * autor: Tomek Ceszke
 * email: tomek.ceszke@gmail.com
 * Politechnika Koszalińska 2007
 */

class ProfilesController extends AppController
{
	var $name 					= 'Profiles';
	var $othAuthRestrictions 	= array('employer');
	//var $uses					= array('Profile','User','Company','Ad');

	function employer()
	{
		$fields = array
			(
				"first_name",
				"last_name",
			);
		
		$data = $this->Profile->find('Profile.user_id='.$this->othAuth->user('id'),$fields);
		$this->set('data',$data);
		//print_r($data);
		
	}
	
	
}
?>